require(['./config'],()=>{
    require(['swiper','header','footer'],(Swiper)=>{
        class Index{
            constructor(){
                this.banner()
            }
            move(){
                $('.poto')
            }
            banner () {
                new Swiper ('.lunbo', {
                    loop: true, 
                    slidesPerView : 1,
                    centeredSlides : true,
                    slidesPerView : 'auto',
                    pagination: {
                      el: '.banner-pagination',
                    },
                    autoplay:{
                        autoplay:true,
                    },
                    
                    navigation: {
                      nextEl: '.swiper-button-next',
                      prevEl: '.swiper-button-prev',
                    }
                })
            }
        }
        new Index()
    })
})